<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>报表</title>
		<link rel="stylesheet" href="css/base.css" />
		<link rel="stylesheet" href="css/mui.min.css" />
		<link rel="stylesheet" href="css/index.css" />
		<link rel="stylesheet" href="css/font-awesome-4.3.0/css/font-awesome.min.css" />
		<!--<link rel="stylesheet" href="css/iconfont.css" />-->
		<link rel="stylesheet" type="text/css" href="css/mui.picker.min.css" />
		<script>
			var html = document.documentElement;
			var windowWidth = html.clientWidth;
			html.style.fontSize = windowWidth / 7.5 + 'px';
		</script>
		<style>
			.mui-content>.mui-table-view:first-child {
				margin-top: 0;
			}
			
			.mui-table-view-cell {
				padding: 20px 15px;
			}
			
			.mui-table-view-cell>a:not(.mui-btn) {
				margin: -20px -15px
			}
			
			.paddingtop80 {
				padding-top: 0.95rem!important;
			}
		</style>
	</head>

	<body>
		<div class="tj-shaixuan margintop80 fanhuibtn">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left backfanhui">返回</a>
		</div>
		<div class="mui-content list-content paddingtop80">
			<ul class="mui-table-view" id="testsr">
				<!--<li class="mui-table-view-cell">
					<a href="kpibiao.html" class="mui-navigate-right" title="门诊情况">门诊情况</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="kpibiao.html" class="mui-navigate-right" title="门急诊收入">门急诊收入</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="kpibiao.html" class="mui-navigate-right">门急诊药品费用</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="kpibiao.html" href="kpibiao.html" class="mui-navigate-right">门急诊均次费</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="kpibiao.html" class="mui-navigate-right">门急诊均药费</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="kpibiao.html" class="mui-navigate-right">门急诊药占比</a>
				</li>
				
				<li class="mui-table-view-cell">
					<a href="kpibiao.html" class="mui-navigate-right">门诊处方数</a>
				</li>
				<li class="mui-table-view-cell">
					<a href="kpibiao.html" class="mui-navigate-right">门急诊人次</a>
				</li>-->
			</ul>
		</div>
		<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
		<script type="text/javascript" src="js/mui.min.js"></script>
		<script type="text/javascript" src="js/mui.js"></script>
		<script type="text/javascript" src="js/mui.zoom.js"></script>
		<script type="text/javascript" src="js/base.js"></script>
		<script src="js/mui.picker.js"></script>
		<script src="js/mui.dtpicker.js"></script>
		<script src="js/mui.picker.min.js"></script>
		<script src="js/libs/echarts-all.js"></script>
		<script>
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});

			mui('.mui-scroll-wrapper').scroll();
			mui.plusReady(function() {
				mui.getJSON('list.json', null, function(data) {					
					for(var i = 0; i < data.length ; i++) {						
						if(data[i].code == plus.webview.currentWebview().tyname) {
							var name = "";
							var mzlist = '';
							for(var j = 0; j < data[i].data.length ; j++) {
								console.log(data[i].data[j].name);
								name = data[i].data[j].name;
								mzlist += '<li class="mui-table-view-cell"><a class="mui-navigate-right" title="' + name + '">' + name + '</a></li>';
							}
							$('#testsr').html(mzlist);
							mui("#testsr").on("tap", 'a', function() {
									var id = this.id;
									var title = this.title;
									mui.openWindow({
										url: 'kpibiao.html',
										extras: {
											tyname: title,
											indexname: plus.webview.currentWebview().tyname
										}
									})
							});
						}r
					}
					});
			});
			checkPlatform(); //判断是安卓还是ios
		</script>
	</body>
</html>